package com.ego.service.impl;

import com.ego.commons.pojo.EasyUITree;
import com.ego.dubbo.service.TbItemCatDubboService;
import com.ego.service.TbItemCatService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title
 * @Author Lyg
 * @Description:
 */
@Service
public class TbItemCatServiceImpl implements TbItemCatService {
    @DubboReference
    private TbItemCatDubboService tbItemCatDubboService;
    @Override
    public List<EasyUITree> selectTreeByParentId(long id) {

        List<EasyUITree> easyUITrees = tbItemCatDubboService.selectItemCatByParentId(id);
        return easyUITrees;
    }
}
